﻿/*
* @Author: z.p
* @Project: Zdotp
* @Date: 2025年01月01日
* @Description: 多网关demo服务端展示
*/

using MultiGateServer.Actors;
using Zdotp.Actor;
using Zdotp.Actor.Kcp;

namespace MultiGateServer;

internal class Program
{
    public static void Main(string[] args)
    {
        var actorSystem = new ActorSystem("multi-gate-system");
        actorSystem.AddActor(() => new ActorKcp("127.0.0.1", 7890), 1);
        actorSystem.AddActor(() => new ActorKcp("127.0.0.1", 7891), 2);
        actorSystem.AddActor(() => new MultiRoomActor(), 2);
        
        actorSystem.Start([typeof(Program).Assembly]);
    }
}